package br.com.siscov.model.login.service;

import br.com.siscov.exceptions.IntegrationException;
import br.com.siscov.exceptions.LoginInvalidoException;
import br.com.siscov.model.login.bo.LoginBO;
import br.com.siscov.model.vo.LoginVo;

public class LoginService {

	private static final LoginService INSTANCE = new LoginService();

	public static LoginService getInstance() {
		return INSTANCE;
	}

	/*public static void obterLogin(LoginVo loginVo) throws IntegrationException, LoginInvalidoException {

		LoginBO loginBo = new LoginBO();
		loginBo.obterLogin(loginVo);
	}
*/
	public static boolean autenticaUsuario(String login,String senha) throws Exception {
		LoginBO loginBo = new LoginBO();
		return loginBo.autenticaUsuario(login,senha);
	}

	public static LoginVo obterAcesso(LoginVo loginVo) throws IntegrationException, LoginInvalidoException {
		LoginBO loginBo = new LoginBO();
		return loginBo.obterAcesso(loginVo);

	}
}
